import request from '@/utils/request'

// 查询药库信息列表
export function listDrug_warehouse(query) {
  return request({
    url: '/drug_warehouse/drug_warehouse/list',
    method: 'get',
    params: query
  })
}

// 查询药库信息详细
export function getDrug_warehouse(warehouseId) {
  return request({
    url: '/drug_warehouse/drug_warehouse/' + warehouseId,
    method: 'get'
  })
}

// 新增药库信息
export function addDrug_warehouse(data) {
  return request({
    url: '/drug_warehouse/drug_warehouse',
    method: 'post',
    data: data
  })
}

// 修改药库信息
export function updateDrug_warehouse(data) {
  return request({
    url: '/drug_warehouse/drug_warehouse',
    method: 'put',
    data: data
  })
}

// 删除药库信息
export function delDrug_warehouse(warehouseId) {
  return request({
    url: '/drug_warehouse/drug_warehouse/' + warehouseId,
    method: 'delete'
  })
}
